<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>网上订餐 后台管理</title>
    <link rel="stylesheet" type="text/css" href="/Public/Admin/css/common.css"/>
    <link rel="stylesheet" type="text/css" href="/Public/Admin/css/main.css"/>
    <script type="text/javascript" src="/Public/Admin/js/libs/modernizr.min.js"></script>
</head>
<body>
<div class="topbar-wrap white">
    <div class="topbar-inner clearfix">
        <div class="topbar-logo-wrap clearfix">
            <h1 class="topbar-logo none"><a href="index.html" class="navbar-brand">后台管理</a></h1>
            <ul class="navbar-list clearfix">
                <li><a class="on" href="<?php echo U('admin/index/index');?>">首页</a></li>
                <li><a href="<?php echo U('home/index/index');?>" target="_blank">网站首页</a></li>
            </ul>
        </div>
        <div class="top-info-wrap">
            <ul class="top-info-list clearfix">
                <li><a href="#">管理员</a></li>
                <li><a href="#">修改密码</a></li>
                <li><a href="#">退出</a></li>
            </ul>
        </div>
    </div>
</div>
<div class="container clearfix">
    <div class="sidebar-wrap">
        <div class="sidebar-title">
            <h1>菜单</h1>
        </div>
        <div class="sidebar-content">
            <ul class="sidebar-list">
                <li>
                    <a href="#"><i class="icon-font">&#xe005;</i>订单管理</a>
                    <ul class="sub-menu">
                        
                        <li><a href="<?php echo U('admin/dingdan/dingdan');?>"><i class="icon-font">&#xe008;</i>查看订单</a></li>
                    </ul>
                </li>
                <li>
                    <a href="#"><i class="icon-font">&#xe005;</i>常用操作</a>
                    <ul class="sub-menu">
                        <li><a href="<?php echo U('admin/caidan/caiadd');?>"><i class="icon-font">&#xe008;</i>添加菜品</a></li>
                        <li><a href="<?php echo U('admin/caidan/caidan');?>"><i class="icon-font">&#xe008;</i>查看菜品</a></li>
                    </ul>
                </li>

                <li>
                     <a href="<?php echo U('admin/goods/goods');?>"><i class="icon-font">&#xe005;</i>积分商品管理</a>
                    <ul class="sub-menu">
                    <li><a href="<?php echo U('admin/goods/goodsadd');?>"><i class="icon-font">&#xe008;</i>添加积分商品</a></li>
                    <li><a href="<?php echo U('admin/goods/goods');?>"><i class="icon-font">&#xe008;</i>查看积分商品</a></li>
                    </ul>
                </li>
                <li>
                     <a href="<?php echo U('admin/comments/liuyan');?>"><i class="icon-font">&#xe005;</i>留言管理</a>
                    <ul class="sub-menu">
                    
                    <li><a href="<?php echo U('admin/comments/liuyan');?>"><i class="icon-font">&#xe004;</i>查看留言</a></li>
                    </ul>
                </li>
                <li>
                     <a href="<?php echo U('admin/news/news');?>"><i class="icon-font">&#xe005;</i>消息管理</a>
                    <ul class="sub-menu">
                    <li><a href="<?php echo U('admin/news/newsadd');?>"><i class="icon-font">&#xe004;</i>添加消息</a></li>
                    <li><a href="<?php echo U('admin/news/news');?>"><i class="icon-font">&#xe004;</i>查看消息</a></li>
                    </ul>
                </li>
                


            </ul>


        </div>
    </div>

    
    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="/jscss/admin">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name">菜单管理</span></div>
        </div>
        <div class="search-wrap">
            <div class="search-content">
                <form action="/jscss/admin/design/index" method="post">
                    <table class="search-tab">
                        <tr>
                            <th width="120">选择分类:</th>
                            <td>
                                <select name="search-sort" id="">
                                    <option value="">全部</option>
                                    <option value="19">精品界面</option><option value="20">推荐界面</option>
                                </select>
                            </td>
                            <th width="70">关键字:</th>
                            <td><input class="common-text" placeholder="关键字" name="keywords" value="" id="" type="text"></td>
                            <td><input class="btn btn-primary btn2" name="sub" value="查询" type="submit"></td>
                        </tr>
                    </table>
                </form>
            </div>
        </div>
        <div class="result-wrap">
            <form name="myform" id="myform" method="post">
                <div class="result-title">
                    <div class="result-list">
                       
                        <a id="batchDel" href="javascript:void(0)"><i class="icon-font"></i>批量删除</a>
                        <a id="updateOrd" href="javascript:void(0)"><i class="icon-font"></i>更新排序</a>
                        <a id="updateOrd" href="<?php echo U('admin/caidan/caiadd');?>"><i class="icon-font"></i>添加菜单</a>
                    </div>
                </div>
                <div class="result-content">
                    <table class="result-tab" width="100%">

                        <tr>   
                            <th>ID</th>
                            <th>菜品分类</th>                       
                            <th>菜品名称</th>                           
                            <th>菜品价格</th>
                            <th>菜品图片</th>
                            <th>菜品剩余数量</th>    
                            <th>菜品状态</th>
                        </tr>
        <?php if(is_array($list)): foreach($list as $key=>$c): ?><tr>    
                            <td><?php echo ($c["cid"]); ?></td>
                            <td><?php echo ($c["veriety"]); ?></td>                       
                            <td><?php echo ($c["dishname"]); ?></td>                           
                            <td><?php echo ($c["price"]); ?></td>
                            <td><img src="<?php echo (substr($c["bill_small_logo"],1)); ?>" alt=""> </td>
                            <td><?php echo ($c["num"]); ?></td> 

                            <?php if($c['status'] == 1): ?><td>上线 </td>
                            <?php else: ?>
                            <td>下线 </td><?php endif; ?>   
                            
                        </tr><?php endforeach; endif; ?>
      </table>
                    <div class="list-page"> 总计 <b><?php echo ($count); ?></b>  个记录  <?php echo ($page); ?></div>
                </div>
            </form>
        </div>
    </div>
    <!--/main-->
</div>
</body>
</html>